package com.example.callcenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("call_record")
public class CallRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long taskId;             // 任务ID
    private Long customerId;         // 客户ID
    private Long salesId;            // 销售ID
    private Integer duration;        // 通话时长(秒)
    private String result;           // 结果(SUCCESS/FAIL/BUSY/NO_ANSWER)
    private String remark;           // 备注
    private LocalDateTime callTime;  // 通话时间
    private LocalDateTime createTime; // 创建时间
}